package com.qf.fmw.dao.impl;

import com.qf.fmw.dao.OrderDao;
import com.qf.fmw.entity.bo.OrderBo;
import junit.framework.TestCase;
import org.junit.Test;

import java.util.List;

public class OrderDaoImplTest extends TestCase {
    private OrderDao orderDao = new OrderDaoImpl();
    // 测试搜索订单
    @Test
    public void testSearchOrders() {
        orderDao.searchOrders("", 0);
    }

    @Test
    public void testTestSearchOrders() {
        List<OrderBo> orderBos = orderDao.searchOrders("", 0);
        for (OrderBo orderBo : orderBos) {
            System.out.println(orderBo);
        }
    }

    @Test
    public void testTestSearchOrders1() {
        List<OrderBo> orderBos = orderDao.searchOrders("as" , 0);
        for (OrderBo orderBo : orderBos) {
            System.out.println(orderBo);
        }
    }
}